package com.youshang520i.springcommonmiddleware.service;

import com.youshang520i.springcommonmiddleware.mq.rabbitmq.po.Mail;

/**
 * @author youshang
 */
public interface RocketmqService {

    /**
     * 发送MQ消息
     * @param mail
     * @return
     */
    boolean send(Mail mail);

    /**
     * 测试广播模式
     * @param mail
     * @return
     */
    boolean sendBroadcast(Mail mail);


    /**
     * 接受MQ消息
     * @param str
     * @return
     */
    Mail receive(String str);

}
